This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: LS2J memory leak and MQSeries ~Rex Lopboosibergakol 3.Nov.03 02:33 PM a Web browser Domino Server 6.0.2 CF1AIX
Hi Eddy,
I found that every time you need to pass/receive a string from/to Java method, the LS2J doesn't dealocate the memory. Problably because String is not a java primitive type. The solution is to create your one java class, that will 'talk' with MQSeries, and to have public variables in your class, so you can pass/receive String parameters with LS2J JAVAPROPERTY.
Ex: Set myProperty = myClass.GetProperty("hostName")
Call myProperty.setValue(HOSTNAME, myObject)
...
Set myProperty = myClass.GetProperty("theMessage")
correllidBytes = myObject.getMessage()
the_Message = myProperty.getValue(myObject)
You can compile and create your java class, or you can use a Java Script Library (be awhare of some problems with the Java Script Library).
if you still have problems, send me a email to rsduarte@yahoo.com